
<script setup>
// 模拟队员数据
const members = [
  {
    avatar: "/static/image/3.1.11.jpg",
    name: "张晓明",
    phone: "队员电话号码1"
  },

];

// 模拟附件数据
const attachments = [
  {
    name: "活动记录.docx"
  },
  {
    name: "活动记录.docx"
  },
  {
    name: "活动记录.docx"
  }
]

</script>

<template>
  <view class="container">
    <!-- 队长信息 -->
    <view class="section">
      <text class="section-title">队长信息</text>
      <view class="member-info">
        <image class="avatar" src="/static/image/3.1.11.jpg"></image>
        <view class="member-detail">
          <text class="member-name">陈婉仪</text>
          <text class="member-id">202011090890</text>
          <br>
          <text class="member-college">计算机学院</text>
        </view>
        <button class="call-button" >拨打电话</button>
      </view>
    </view>

    <!-- 队员信息 -->
    <view class="section">
      <text class="section-title">队员信息</text>
      <view class="member-item" v-for="(member, index) in members" :key="index">
        <image class="avatar" :src="member.avatar"></image>
        <view class="member-detail">
          <text class="member-name">{{ member.name }}</text>

        </view>
        <button class="call-button" >拨打电话</button>
      </view>
    </view>

    <!-- 活动照片 -->
    <view class="section">
      <text class="section-title">活动照片</text>
      <image class="activity-photo" src="/static/image/active.jpg"></image> 
    </view>

    <!-- 其他附件 -->
    <view class="section">
      <text class="section-title">其他附件</text>
      <view class="attachment-item" v-for="(attachment, index) in attachments" :key="index">
        <text class="attachment-name">{{ attachment.name }}</text>
      </view>
    </view>
  </view>
</template>


<style scoped>
.container {
  padding: 15px;
  background-color: #f5f5f5;
}

.section {
  background-color: #fff;
  border-radius: 5px;
  padding: 15px;
  margin-bottom: 15px;
}

.section-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #333;
}

.member-info,
.member-item {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
}

.member-detail {
  flex: 1;
}

.member-name {
  font-size: 14px;
  color: #333;
}

.member-id,
.member-college {
  font-size: 12px;
  color: #666;
}

.call-button {
  background-color: #007AFF;
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  border: none;
}

.activity-photo {

  width: 260px;
  height: 120px;
  margin-right: 10px;
}

.attachment-item {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.attachment-name {
  font-size: 14px;
  color: #007AFF;
}
</style>